package com.example.demo.service.impl;

import com.example.demo.entity.Aunt;
import com.example.demo.entity.CanteenMan;
import com.example.demo.mapper.GilMapper;
import com.example.demo.service.GilService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class GilServiceImpl implements GilService {
    @Autowired
    private GilMapper gilMapper;

    @Override
    public int findCanteenManTotal() {
        return gilMapper.findCanteenManTotal();
    }

    @Override
    public int findAuntTotal() {
        return gilMapper.findAuntTotal();
    }

    @Override
    public List<CanteenMan> findCanteenMansByPage(Integer startNum,Integer size) {
        return gilMapper.findCanteenMansByPage(startNum,size);
    }

    @Override
    public List<Aunt> findAuntByPage(Integer startNum, Integer size) {
        return gilMapper.findAuntByPage(startNum,size);
    }

    @Override
    public int updateCanteenMan(Map<String, String> map) {
        return gilMapper.updateCanteenMan(map);
    }

    @Override
    public int addCanteenMan(Map<String, String> map) {
        return gilMapper.addCanteenMan(map);
    }

    @Override
    public int delCanteenMan(Integer cid) {
        return gilMapper.delCanteenMan(cid);
    }

    @Override
    public int updateAunt(Map<String, String> map) {
        return gilMapper.updateAunt(map);
    }

    @Override
    public int addAunt(Map<String, String> map) {
        return gilMapper.addAunt(map);
    }

    @Override
    public int delAunt(Integer aid) {
        return gilMapper.delAunt(aid);
    }
}
